package com.mcc.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 操作日志记录表 oper_log
 *
 * @author gxy
 */
@ApiModel("操作日志对象")
@Data
public class SysOperLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("日志ID")
    private Long operId;

    @ApiModelProperty("操作模块")
    private String title;

    @ApiModelProperty("业务类型（0其它,1新增,2修改,3删除,4授权,5导出,6导入,7强退,8生成代码,9清空数据）")
    private Integer businessType;

    @ApiModelProperty("请求方法")
    private String method;

    @ApiModelProperty("请求方式")
    private String requestMethod;

    @ApiModelProperty("操作类别（0其它 1后台用户 2手机端用户）")
    private Integer operatorType;

    @ApiModelProperty("操作人员")
    private String operName;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("请求url")
    private String operUrl;

    @ApiModelProperty("操作地址")
    private String operIp;

    @ApiModelProperty("操作地点")
    private String operLocation;

    @ApiModelProperty("请求参数")
    private String operParam;

    @ApiModelProperty("返回参数")
    private String jsonResult;

    @ApiModelProperty("操作状态（0正常 1异常）")
    private Integer status;

    @ApiModelProperty("错误消息")
    private String errorMsg;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operTime;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private String beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private String endTime;

}
